import {request} from '../utils/request'

export const cfyAdd = (cfyObj)=>{
  return request.post('/1.1/classes/CakeCfy',cfyObj)
}

export const cfyList = ()=>{
  return request.get('/1.1/classes/CakeCfy')
}

export const bannerAdd = (bannerObj)=>{ //录入banner
  return request.post('/1.1/classes/CakeBanner',bannerObj)
}

export const bannerList = ()=>{ //banner列表
  return request.get('/1.1/classes/CakeBanner')
}

export const bannerUpdate = (objectId,bannerObj)=>{ //更新banner
  return request.put(`/1.1/classes/CakeBanner/${objectId}`,bannerObj)
}

export const bannerDel = (objectId)=>{ //banner删除
  return request.delete(`/1.1/classes/CakeBanner/${objectId}`)
}